<template>
  <div id='titleinfo'>
    <van-nav-bar
      :title="titlemsg"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft" />
  </div>
</template>

<script>
export default {
  name: 'titleinfo',
  data() {
    return {
      titlemsg: '',
    }
  },
  methods: {
    onClickLeft() {
      this.$router.replace('/myinfo/info')
    },
  },
  mounted() {
    this.titlemsg = window.localStorage.getItem('titlemsg')
    // this.titlemsg = this.$store.state.titlemsg
  },
}
</script>

<style scoped lang='less'>
</style>
